﻿
/* Thiết lập cơ bản */


.page-block {
    height: 100vh;
    display: grid;
    place-content: center;
    text-align: center;
}

/* Container chính tạo không gian để cuộn */
.scrolly-container {
    position: relative;
    /* CẦN 400VH: 100vh cho trạng thái đầu + 300vh cho 3 bước chuyển */
    height: 400vh;
}

/* Sân khấu sẽ dính lại */
.stage {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #fff;
}

/* ---- CẬP NHẬT CSS CHO BỐ CỤC CÂN BẰNG ---- */
.panel {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Container cho ảnh và text */
.image-content, .text-content {
    width: 50vw;
    height: 50vw;
    max-width: 95vh;
    max-height: 90vh;
    position: absolute;
    box-sizing: border-box;
}

    .image-content img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.text-content {
    background-color: #fff;
    padding: 2.5vw;
    overflow-y: auto;
}

/* Căn lề cho các khối nội dung */
#image-1 .image-content, #image-3 .image-content, #text-2 .text-content {
    left: 0;
}

#image-2 .image-content, #text-1 .text-content, #text-3 .text-content {
    left: 50%;
}

/* Tùy chỉnh thanh cuộn */
.text-content::-webkit-scrollbar {
    width: 8px;
}

.text-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.text-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.text-content h2 {
   
    margin-top: 0;
}

.text-content p {
   
    line-height: 1.6;
}

